package com.pox.guli.service.edu.service;

import com.pox.guli.service.edu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pox.guli.service.edu.entity.vo.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author pox21s
 * @since 2022-06-01
 */
public interface ChapterService extends IService<Chapter> {

    /**
     * 根据ID删除章节
     * @param id 章节id
     * @return boolean
     */
    boolean removeChapterById(String id);

    /**
     * 查询章节ID的子列表
     * @param courseId 章节id
     * @return List<ChapterVo>
     */
    List<ChapterVo> nestedList(String courseId);
}
